<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 

<jsp:useBean id="lmdelete" class="database.DbLebensmittelLoeschen" scope="request"/>
<jsp:setProperty name="lmdelete" property="*"/>
<jsp:setProperty name="lmdelete" property="userID" value="${sessionScope.id}"/>

<c:set var="test" value="${lmdelete.loeschen()}" scope="request" />
<c:if test="${test}">
<c:out value="1" /> 
</c:if>
<c:if test="${!test}">
<c:out value="0" /> 
</c:if>
